package com.baizhi.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

public class Song implements Serializable {
    private Integer songId;
    private String songName;
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date songTime;
    private String songPath;
    private Integer who;
    private Singer singer;

    public Song(Integer songId, String songName, Date songTime, String songPath, Integer who, Singer singer) {
        this.songId = songId;
        this.songName = songName;
        this.songTime = songTime;
        this.songPath = songPath;
        this.who = who;
        this.singer = singer;
    }

    public Song() {
    }

    public Integer getSongId() {
        return songId;
    }

    public void setSongId(Integer songId) {
        this.songId = songId;
    }

    public String getSongName() {
        return songName;
    }

    public void setSongName(String songName) {
        this.songName = songName;
    }

    public Date getSongTime() {
        return songTime;
    }

    public void setSongTime(Date songTime) {
        this.songTime = songTime;
    }

    public String getSongPath() {
        return songPath;
    }

    public void setSongPath(String songPath) {
        this.songPath = songPath;
    }

    public Integer getWho() {
        return who;
    }

    public void setWho(Integer who) {
        this.who = who;
    }

    public Singer getSinger() {
        return singer;
    }

    public void setSinger(Singer singer) {
        this.singer = singer;
    }

    @Override
    public String toString() {
        return "Song{" +
                "songId=" + songId +
                ", songName='" + songName + '\'' +
                ", songTime=" + songTime +
                ", songPath='" + songPath + '\'' +
                ", who=" + who +
                ", singer=" + singer +
                '}';
    }
}
